package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-08-02
 * Time: 21:13
 */
public class Test2 extends Thread{
    @Override
    public void run() {
        System.out.println("继承Thread类 重写run方法");
    }

    public static void main(String[] args) {
        Test2 t1= new Test2();
        t1.start();
    }
}
